package com.tensquare.qa.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tensquare.qa.mapper.UlMapper;
import com.tensquare.qa.domain.Ul;
import com.tensquare.qa.service.IUlService;

/**
 * ulService业务层处理
 * 
 * @author hbxfwf
 * @date 2021-08-25
 */
@Service
public class UlServiceImpl implements IUlService 
{
    @Autowired
    private UlMapper ulMapper;

    /**
     * 查询ul
     * 
     * @param uid ul主键
     * @return ul
     */
    @Override
    public Ul selectUlByUid(String uid)
    {
        return ulMapper.selectUlByUid(uid);
    }

    /**
     * 查询ul列表
     * 
     * @param ul ul
     * @return ul
     */
    @Override
    public List<Ul> selectUlList(Ul ul)
    {
        return ulMapper.selectUlList(ul);
    }

    /**
     * 新增ul
     * 
     * @param ul ul
     * @return 结果
     */
    @Override
    public int insertUl(Ul ul)
    {
        return ulMapper.insertUl(ul);
    }

    /**
     * 修改ul
     * 
     * @param ul ul
     * @return 结果
     */
    @Override
    public int updateUl(Ul ul)
    {
        return ulMapper.updateUl(ul);
    }

    /**
     * 批量删除ul
     * 
     * @param uids 需要删除的ul主键
     * @return 结果
     */
    @Override
    public int deleteUlByUids(String[] uids)
    {
        return ulMapper.deleteUlByUids(uids);
    }

    /**
     * 删除ul信息
     * 
     * @param uid ul主键
     * @return 结果
     */
    @Override
    public int deleteUlByUid(String uid)
    {
        return ulMapper.deleteUlByUid(uid);
    }
}
